@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  // color: inherit;
  color: #0000EE;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.confirmBg {
  background: #409EFF !important;
  color: #FFFFFF !important;
}

// 操作栏
.the-action-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
// 启用和禁用开关
.tableScopeSwitch .el-switch__label {
  display: block;
  position: absolute;
  display: none;
  color: #fff;
  text-align: center;
  margin: 0 10px;
  font-size: 12px !important;
}


// 头部搜索和新增按钮定位 ---- 侧边栏开启
.sun_header_box{
  position: fixed;
  right: 0;
  z-index: 9;
  width: calc(100% - #{$sideBarWidth});
  transition: width 0.28s;
  // background-color:darkgrey;
}
// 头部搜索和新增按钮定位 ---- 侧边栏关闭
.sun_header_box_sideBarWidth{
  width: calc(100% - 54px)
}
/*打开时文字位置设置*/
.tableScopeSwitch .el-switch__label--right {
  z-index: 1;
  right: 0;
}
/*关闭时文字位置设置*/
.tableScopeSwitch .el-switch__label--left {
  z-index: 1;
  left: 0;
}
/*显示文字*/
.tableScopeSwitch .el-switch__label.is-active {
  display: block;
}
.tableScopeSwitch.el-switch .el-switch__core,
.el-switch .el-switch__label {
  width: 65px !important;    /*开关按钮的宽度大小*/
}
.dot_sign{
  position: absolute;top: -5px;right: -5px;background: #f56c6c;padding: 5px;border-radius: 50%;box-shadow: 0 0 3px #FF0000;
}
.dot {
  color: #FFFFFF;background: #f56c6c;position: absolute;top: -10px;height: 20px;line-height: 20px;font-weight: 500;font-size: 12px;padding: 3px 7px;border-radius: 20px;
}
/* flex布局,自动换行 */
.flex-row-wrap{ display: flex; flex-wrap: wrap; }

/* 水平平均分布 */
.flex_around { display: flex; flex-direction: row; justify-content: space-around; }

/* 水平两端对齐 */
.flex_between { display: flex; flex-direction: row; justify-content: space-between; }

/** 水平右对齐 */
.flex_end { display: flex; flex-direction: row; justify-content: flex-end; }

/* 水平居中对齐 */
.flex_center { display: flex; flex-direction: row; justify-content: center; }

/**/
.flex_vertical{ display: flex; flex-direction: row; flex-direction: row-reverse}

/* 垂直居中 */
.flex_center_align{ display: flex; flex-direction: row; align-items:center;}

/* 水平平均垂直居中 */
.flex_center_around{ display: flex; flex-direction: row; justify-content: space-around; align-items:center; }

.text_line1 {
  -webkit-line-clamp: 1;
}

.sun-icon-right{
  margin-right: 5px;
}

.tow_line {
  display: -webkit-box;
  word-break: break-all;
  text-overflow: ellipsis;
  font-size: 28rpx; //自适应字体
  overflow: hidden;
  -webkit-box-orient: vertical;
}
/* 修改西瓜视频播放背景 */
.xgplayer-enter{
  background: none !important
}
.xgplayer-enter .xgplayer-enter-logo{
  background-image: none !important
}

// 课程信息自定义html样式盒子
.SunCustomHtmlBox {
  display: inline-block;
  width: 100%;
}

// 表格浮动线条
.column-right-line {
  position: absolute;width: 1px;height: 8000px;background: #EBEEF5;top: -400px;
}